﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Principal.Master" AutoEventWireup="true" CodeBehind="editSubmissao.aspx.cs" Inherits="SRD.View.Views.editSubmissao" %>
<asp:Content ID="Content3" ContentPlaceHolderID="head" runat="server">
    
    <style type="text/css">
        #titulo
        {
            height: 42px;
        }
        .style1
        {
            height: 31px;
            }
        .style3
        {
            text-align: left;
        }
        .style4
        {
            width: 287px;
            text-align: left;
        }
        .style6
        {
            height: 10px;
        }
        .style7
        {
            text-align: left;
            height: 261px;
        }
caption,th {text-align:left;}address,caption,cite,code,dfn,em,strong,th,var{font-style:normal;font-weight:normal;}
        .style8
        {
            text-align: center;
            height: 80px;
        }
        .style9
        {
            width: 69%;
        }
        .style10
        {
        }
        .style11
        {
            text-align: center;
        }
        .style12
        {
            width: 149px;
        }
        </style>
    
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table bgcolor="White" cellspacing="0">
        <tr>
            <td align="center" valign="top" style="width: 960px;">
                <br />
                <br />
                <table bgcolor="#C4CEDD" cellspacing="10">
                    <tr>
                        <td align="center" class="style1" colspan="2" 
                            style="font-family: Verdana; color: #FFFFFF; font-weight: bold;" 
                            bgcolor="#284775">Cadastro de Submissão</td>
                    </tr>
                    <tr>
                        <td class="style3" style="font-family: Verdana; font-size: medium;" 
                            align="left">
                            Descrição: 
                        </td>
                        <td class="style4">
                            <asp:TextBox ID="txtNome" runat="server" Height="20px" Width="361px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style3" style="font-family: Verdana; font-size: medium;" 
                            align="left">
                            Data:</td>
                        <td class="style4">
                            <asp:TextBox ID="txtCpf" runat="server" Width="176px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style3" style="font-family: Verdana; font-size: medium;" 
                            align="left">
                            Projeto:</td>
                        <td class="style4">
                            <asp:DropDownList ID="ddlProjeto" runat="server" DataTextField="NM_CARGO" 
                                DataValueField="CARGO_ID" Width="191px">
                                <asp:ListItem Value="">..:Selecione:..</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td class="style8" style="font-family: Verdana; font-size: medium;" 
                            align="center" colspan="2">
                           
                            <div id="divDespesa" style="display:block">
                                <table cellspacing="5" class="style9">
                                    <tr>
                                        <td align="center" class="style10" colspan="2">
                                            DESPESA</td>
                                    </tr>
                                    <tr>
                                        <td align="left" class="style12">
                                            <asp:Label ID="lblTipoDespesa" runat="server" Text="Tipo de Despesa:"></asp:Label>
                                        </td>
                                        <td align="left">
                                            <asp:DropDownList ID="ddlTipoDespesa" runat="server" 
                                                DataTextField="NM_TIPO_DESPESA" DataValueField="TIPO_DESPESA_ID" 
                                                Width="187px">
                                                <asp:ListItem Value="">..:Selecione:..</asp:ListItem>
                                            </asp:DropDownList>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="style12" align="left">
                                            <asp:Label ID="lblOrigem" runat="server" Text="Origem:"></asp:Label>
                                        </td>
                                        <td align="left">
                                            <asp:TextBox ID="txtOrigem" runat="server" Width="300px"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="style12" align="left">
                                            <asp:Label ID="lblDestino" runat="server" Text="Destino:"></asp:Label>
                                        </td>
                                        <td align="left">
                                            <asp:TextBox ID="txtDestino" runat="server" Width="300px"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="style12" align="left">
                                            <asp:Label ID="lblKm" runat="server" Text="KM:"></asp:Label>
                                        </td>
                                        <td align="left">
                                            <asp:TextBox ID="txtKm" runat="server" Width="112px"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="style12" align="left">
                                            <asp:Label ID="lblValor" runat="server" Text="Valor:"></asp:Label>
                                        </td>
                                        <td align="left">
                                            <asp:TextBox ID="txtValor" runat="server" Width="112px"></asp:TextBox>
                                        </td>
                                    </tr>
                                </table>
                            </div>
                            <br />
                            </td>
                    </tr>
                    <tr>
                        <td class="style11" style="font-family: Verdana; font-size: medium;" 
                            align="center" colspan="2">
                            <asp:Button ID="btnInserirDespesa" runat="server" Text="Inserir Despesa" 
                                Width="190px" onclick="btnInserirDespesa_Click" />
                        </td>
                    </tr>
                    <tr>
                        <td class="style7" style="font-family: Verdana; font-size: medium;" 
                            align="left" colspan="2">
                                <asp:GridView ID="GridProfissional" runat="server" AllowPaging="True" 
                                    AllowSorting="True" AutoGenerateColumns="False" CellPadding="4" 
                                    DataKeyNames="PROFISSIONAL_ID" Font-Names="Verdana" Font-Size="Small" 
                                    ForeColor="#333333" GridLines="None" HorizontalAlign="Center" 
                                    onPageIndexChanging="GridProfissional_PageIndexChanging" 
                                    OnRowDeleting="GridProfissional_RowDeleting" PageSize="5" RowHeaderColumn="NM_PROFISSIONAL" 
                                    Width="729px">
                                    <AlternatingRowStyle BackColor="White" />
                                    <Columns>
                                        <asp:BoundField DataField="NM_TIPO_DESPESA" HeaderText="Tipo de Despesa">
                                        <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                        <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="NM_CARGO" HeaderText="Cargo">
                                        <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                        <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="NM_SETOR" HeaderText="Setor">
                                        <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                        <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" />
                                        </asp:BoundField>
                                        <asp:TemplateField HeaderText="Opções">
                                            <ItemTemplate>
                                                <asp:ImageButton ID="BtEditar" runat="server" CausesValidation="False" 
                                                    EnableViewState="false" ImageUrl="~/Imagens/icone_edicao.jpg" 
                                                    PostBackUrl='<%# Eval("PROFISSIONAL_ID", "editProfissional.aspx?&id_profissional={0}") %>' 
                                                    ToolTip="Alterar" />
                                                <asp:ImageButton ID="BtExcluir" runat="server" CommandName="delete" 
                                                    Height="26px" ImageUrl="~/Imagens/icone_borracha.jpg" 
                                                    OnClientClick="return confirm('Confirma exclusão?')" ToolTip="Excluir" 
                                                    Width="32px" />
                                            </ItemTemplate>
                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Top" />
                                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Top" Width="100px" />
                                        </asp:TemplateField>
                                    </Columns>
                                    <EditRowStyle BackColor="#2461BF" />
                                    <FooterStyle BackColor="#284775" Font-Bold="True" ForeColor="White" />
                                    <HeaderStyle BackColor="#284775" Font-Bold="True" Font-Size="Large" 
                                        ForeColor="White" />
                                    <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                                    <RowStyle BackColor="#EFF3FB" />
                                    <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                                    <SortedAscendingCellStyle BackColor="#F5F7FB" />
                                    <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                                    <SortedDescendingCellStyle BackColor="#E9EBEF" />
                                    <SortedDescendingHeaderStyle BackColor="#4870BE" />
                                </asp:GridView>
                            </td>
                    </tr>
                    <tr style="height: 20px;">
                        <td align="center" colspan="2" style="font-family: Verdana">
                            
                            <asp:ImageButton ID="BtSalvar" runat="server" ImageUrl="~/Imagens/Salvar.png" 
                                onclick="BtSalvar_Click" />
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                            <asp:ImageButton ID="BtVoltar" runat="server" ImageUrl="~/Imagens/SAIRTELA.png" 
                                onclick="BtVoltar_Click" style="height: 32px" />
                            <br />
                            Salvar&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; Voltar
                         </td>
                    </tr>
                                        
                    <tr style="height: 20px;">
                        <td align="center" colspan="2" style="font-family: Verdana">
                            
                            &nbsp;</td>
                    </tr>
                                        
                </table>
            </td>
        </tr>
        <tr>
            <td bgcolor="#284775" class="style6"></td>
        </tr>
   </table>
</asp:Content>
